package com.pi.base.common;

public class SearchPage {
	
	private Integer page;
	
	private Integer rows;
	
	private String sort;

	private String order;
	
	public Integer getPage() {
		return page;
	}

	public void setPage(Integer page) {
		this.page = page;
	}

	public Integer getRows() {
		return rows ;
	}

	public void setRows(Integer rows) {
		this.rows = rows;
	}

	public String getSort() {
		return sort;
	}

	public void setSort(String sort) {
		this.sort = sort;
	}

	public String getOrder() {
		return order;
	}

	public void setOrder(String order) {
		this.order = order;
	}
	
	public Integer getStartIndex(){
		if(page == null){
			return 0;
		}else {
			return (getPage()-1)*this.getRows();
		}
	}

}
